using System;
using System.Collections.Generic;
using System.Text;

namespace Payroll
{
    public class AddCommissionedEmployee:AddEmployeeTransaction
    {
        private double itsSalary;
        private double itsCommissionRate;

        public AddCommissionedEmployee(int empid, string name, string address, double salary, double commissionRate)
            : base(empid, name, address)
        {
            itsSalary = salary;
            itsCommissionRate = commissionRate;
        }
        public override PaymentClassification GetClassification()
        {
            return new CommissionedClassification(itsSalary,itsCommissionRate);
        }

        public override PaymentSchedule GetSchedule()
        {
            return new BiweeklySchedule();
        }
    }
}
